package com.ftg.learn.day10.proxy;

/**
 * 代理类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/8/15 上午11:02
 */
public class Zyh extends Kjx{

//    private Kjx k1;
//
//    public Zyh(Kjx k1){
//        this.k1 = k1;
//    }

    public void buy() {
        System.out.println("去美国 。。。。。");
        System.out.println("发了一个视频 选品");
        //kjx.buy();
        super.buy();

        //AOP
    }

    public static void main(String[] args) {
        Kjx k1 = new Zyh();
//        Zyh z = new Zyh(k1);
        k1.buy();
    }

}
